package com.yt.server.api;

import com.yt.server.api.action.IActionCall;
import com.yt.server.api.action.IActionCallback;
import com.yt.server.messaging.Packet;

/**
 * @author 刘晶
 * @IActionCapableConnection Connection ---> Action的桥梁
 */
public interface IServiceCapableConnection extends IConnection {

	void handleRemotingPacket(Packet packet) throws Exception;

	void handleRemotingPacket(Packet packet, IActionCallback callback)
			throws Exception;

	void invoke(IActionCall call) throws Exception;

	void notify(IActionCall call) throws Exception;

	void invoke(Object params) throws Exception;

	void notify(Object params) throws Exception;
}
